<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../echarts.js"></script>
</head>
<style>
    #main {
        width: 400px;
        height: 200px;
    }
</style>
<body>
    <div id="main"></div>
</body>
<script>
    var myChart = echarts.init(document.getElementById('main'))
    option = {
        legend: {},
        tooltip: {},
        dataset: {
            source: [
                ['product', '2015'],
                ['Matcha Latte', 37],
                ['Milk Tea', 81],
                ['Cheese Cocoa', 86],
                ['Walnut Brownie', 74]
            ]
        },
        xAxis: { type: 'category' },
        yAxis: {},
        // Declare several bar series, each will be mapped
        // to a column of dataset.source by default.
        series: [{ type: 'bar' }, { type: 'bar' }, { type: 'bar' }]
    };
    myChart.setOption(option)
</script>

</html>